<!DOCTYPE html>
<html lang="zh">
<head>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>错题库</title>
    <link href="../../css/base.css" rel="stylesheet" type="text/css"/>
    <link href="../../css/main.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="errors_Bank">
    <div class="eb_title clearfix">
        <div class="eb_left_label fl">
            <label class="iconfont icon-jiantou1"></label>
        </div>
        <div class="eb_center_info fl">
            <span>错题库</span>
        </div>
        <div class="eb_right_save">
            <img src="../../images/nav.png"/>
        </div>
    </div>
    <div class="eb_content">
        <div class="eb_content_info ">
             <div class="eb_content_title clearfix">
                 <div class="eb_title_header clearfix">
                     <label class="iconfont icon-chazhao fl"></label>
                     <input type="text" placeholder="搜索题目编号" class="fl"/>
                 </div>
                 <div class="eb_center_title fr">
                     <span>科目筛选</span>
                     <div class="drop-down">
                         <i class="icon iconfont icon-jiantou"></i>
                         <div class="select-nav">
                             <ul>
                                 <li>语文</li>
                                 <li>数学</li>
                                 <li>显示全部</li>
                             </ul>
                         </div>
                     </div>
                 </div>
             </div>
             <div class="eb_content_ListInfo">
                  <div class="eb_top_title clearfix">
                       <div class="eb_top_left fl">
                           科目
                       </div>
                      <div class="eb_top_right fl">
                          <span>2017年1月16日 15:05:36</span>
                          <span class="eb_edit"><a href="#">编辑</a></span>
                      </div>
                  </div>
                  <div class="eb_middle">
                       <p class="eb_middle_title">第1题:题目内容题目内容题目内容题目内容题目内容题目内容题目内容</p>
                       <p class="eb_middle_content clearfix">
                           <span class="daan_title fl">答案:</span>
                           <span class="daan_info fl">题目内容题目内容题目内容题目内容题目内容</span>
                       </p>
                  </div>
                  <ul class="eb_footer clearfix">
                      <li>
                          <a href="#">
                          <img src="../../images/background-image.png" />
                          </a>
                      </li>
                      <li>
                          <a href="#">
                          <img src="../../images/background-image.png" />
                          </a>
                      </li>
                  </ul>
             </div>
             <div class="eb_content_ListInfo">
                <div class="eb_top_title clearfix">
                    <div class="eb_top_left fl">
                        科目
                    </div>
                    <div class="eb_top_right fl">
                        <span>2017年1月16日 15:05:36</span>
                        <span class="eb_edit"><a href="#">编辑</a></span>
                    </div>
                </div>
                <div class="eb_middle">
                    <p class="eb_middle_title">第1题:题目内容题目内容题目内容题目内容题目内容题目内容题目内容</p>
                    <p class="eb_middle_content clearfix">
                        <span class="daan_title fl">答案:</span>
                        <span class="daan_info fl">题目内容题目内容题目内容题目内容题目内容</span>
                    </p>
                </div>
                <ul class="eb_footer clearfix">
                    <li>
                        <a href="#">
                            <img src="../../images/background-image.png" />
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <img src="../../images/background-image.png" />
                        </a>
                    </li>
                </ul>
            </div>
             <div class="eb_content_ListInfo">
                <div class="eb_top_title clearfix">
                    <div class="eb_top_left fl">
                        科目
                    </div>
                    <div class="eb_top_right fl">
                        <span>2017年1月16日 15:05:36</span>
                        <span class="eb_edit"><a href="#">编辑</a></span>
                    </div>
                </div>
                <div class="eb_middle">
                    <p class="eb_middle_title">第1题:题目内容题目内容题目内容题目内容题目内容题目内容题目内容</p>
                    <p class="eb_middle_content clearfix">
                        <span class="daan_title fl">答案:</span>
                        <span class="daan_info fl">题目内容题目内容题目内容题目内容题目内容</span>
                    </p>
                </div>
                <ul class="eb_footer clearfix">
                    <li>
                        <a href="#">
                            <img src="../../images/background-image.png" />
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <img src="../../images/background-image.png" />
                        </a>
                    </li>
                </ul>
            </div>
             <div class="eb_footer_jiantou">
                 <label class="iconfont icon-icon-copy"></label>
             </div>
        </div>
    </div>
</div>
<script src="../../js/rem.js"></script>
<script src="../../js/lib/jquery.js" type="text/javascript"></script>
<script src="../../js/lib/layer_mobile/layer.js"></script>
<script>
    $(function(){
        $('.drop-down').click(function () {
            if($(".drop-down i").hasClass("rotate")) {
                $('.select-nav').slideUp("fast", function () {
                    $(".drop-down i").removeClass('rotate');
                    $(this).fadeOut(2000);
                });
            }else{
                $(".drop-down i").addClass('rotate');
                $(".select-nav").slideDown('fast');
            }
        });

        $('.drop-down ul li').click(function () {
            var txt = $(this).text();
            $(".title span").text(txt);
            $(".select-nav").fadeOut(2000);
        });
        $(".eb_footer_jiantou").click(function(){
            $(".eb_content_info ").scrollTop($(".eb_content_info ").height());
        })
        var myDate = new Date();
        myDate.getYear();
        //获取当前年份(2位)
        myDate.getMonth();
        //获取当前月份(0-11,0代表1月)
        myDate.getDate();
        //获取当前日(1-31)
        myDate.getDay();
        //获取当前时间(从1970.1.1开始的毫秒数)
        myDate.getHours();
        //获取当前小时数(0-23)
        myDate.getMinutes();
        //获取当前分钟数(0-59)
        myDate.getSeconds();
        //获取当前秒数(0-59)
        myDate.getMilliseconds();
        //获取日期与时间
        myDate.toLocaleString( );

        var mytime=myDate.toLocaleTimeString();

        var kemu=
                '<div class="eb_content_ListInfo">'+
                '<div class="eb_top_title clearfix">'+
                '<div class="eb_top_left fl">'+
                    '<select>' +
                        '<option>语文</option>'+
                        '<option>数学</option>'+
                        '<option>外语</option>'+
                    '</select>'+
                '</div>'+
                '<div class="eb_top_right fl">'+
                    '<span>'+myDate.toLocaleDateString()+'&nbsp;'+mytime+'</span>'+
                    '</div>'+
                '</div>'+
                '<div class="eb_middle">'+
                    '<textarea class="eb_middle_title" placeholder="题目："></textarea>'+
                    '<textarea class="eb_middle_content clearfix" placeholder="答案：">'+
                    '</textarea>'+
                    '</div>'+
                    '<ul class="eb_footer clearfix">'+
                            '<li class="ef_tupian">'+
                                '<a href="#"><img src="../../images/background-image.png" /></a>'+
                            '</li>'+
                            '<li class="ef_yuyin">'+
                                '<a href="#"><label class="iconfont icon-yuyin"></label></a>'+
                            '</li>'+
                    '</ul>'+
                    '<div class="btn_queen">确定</div>'+
                 '</div>';
        $(".eb_right_save").click(function(){
            layer.open({
                title:'添加科目',
                className:'kemu_info',
                content:kemu
            })
        })
    })
</script>
</body>
</html>
